package com.epsilon.pos.ventas;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Button;

public class VentasComposite extends Composite {
	private Table table;
	private Text text;
	private Text text_1;
	private Text text_2;

	/**
	 * Create the composite.
	 * @param parent
	 * @param style
	 */
	public VentasComposite( Composite parent, int style ) {
		super( parent, style );
		
		Group grpMduloDeVentas = new Group(this, SWT.NONE);
		grpMduloDeVentas.setText("VENTAS");
		grpMduloDeVentas.setBounds(0, 0, 665, 469);
		
		table = new Table(grpMduloDeVentas, SWT.BORDER | SWT.FULL_SELECTION);
		table.setBounds(10, 45, 523, 328);
		table.setHeaderVisible(true);
		table.setLinesVisible(true);
		
		TableColumn tblclmnNewColumn = new TableColumn(table, SWT.NONE);
		tblclmnNewColumn.setWidth(100);
		tblclmnNewColumn.setText("Cantidad");
		
		TableColumn tblclmnNewColumn_1 = new TableColumn(table, SWT.NONE);
		tblclmnNewColumn_1.setWidth(319);
		tblclmnNewColumn_1.setText("Descripci\u00F3n");
		
		TableColumn tblclmnNewColumn_2 = new TableColumn(table, SWT.NONE);
		tblclmnNewColumn_2.setWidth(100);
		tblclmnNewColumn_2.setText("Precio");
		
		text = new Text(grpMduloDeVentas, SWT.BORDER);
		text.setBounds(433, 379, 100, 19);
		
		Label lblNewLabel = new Label(grpMduloDeVentas, SWT.RIGHT);
		lblNewLabel.setBounds(383, 385, 44, 13);
		lblNewLabel.setText("Subtotal:");
		
		text_1 = new Text(grpMduloDeVentas, SWT.BORDER);
		text_1.setBounds(433, 404, 100, 19);
		
		Label lblTotal = new Label(grpMduloDeVentas, SWT.RIGHT);
		lblTotal.setBounds(378, 410, 49, 13);
		lblTotal.setText("Total:");
		
		text_2 = new Text(grpMduloDeVentas, SWT.BORDER);
		text_2.setBounds(10, 20, 270, 19);
		
		Button btnNewButton = new Button(grpMduloDeVentas, SWT.NONE);
		btnNewButton.setBounds(286, 16, 120, 23);
		btnNewButton.setText("Agregar art\u00EDculo");
		
		Button btnNewButton_1 = new Button(grpMduloDeVentas, SWT.NONE);
		btnNewButton_1.setBounds(413, 16, 120, 23);
		btnNewButton_1.setText("B\u00FAsqueda");
		
		Button btnNewButton_2 = new Button(grpMduloDeVentas, SWT.NONE);
		btnNewButton_2.setBounds(413, 429, 120, 23);
		btnNewButton_2.setText("Concretar venta");
		
		Button btnNewButton_3 = new Button(grpMduloDeVentas, SWT.NONE);
		btnNewButton_3.setBounds(286, 429, 120, 23);
		btnNewButton_3.setText("Cancelar venta");
		
		Button btnNewButton_4 = new Button(grpMduloDeVentas, SWT.NONE);
		btnNewButton_4.setBounds(539, 45, 120, 23);
		btnNewButton_4.setText("Cancelar art\u00EDculo");

	}

	@Override
	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}
}
